FROM pig4cloud/java:8-jre

MAINTAINER wangiegie@gmail.com

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms512m -Xmx1024m -Djava.security.egd=file:/dev/./urandom"

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN mkdir -p /exsecs-flow-task

WORKDIR /exsecs-flow-task

EXPOSE 9030

ADD ./target/exsecs-flow-task-biz.jar ./

CMD sleep 60;java $JAVA_OPTS -jar exsecs-flow-task-biz.jar
